<div class="row">
    <div class="col-12">
        <div class="card">
            <div class="card-body">
                <table style="width: 100%;height: 30px; background-color: rgba(119,173,147,0.29)" border="1">
                    <th style="font-size: 25px;text-align: center; ">[删除页面]</th>
                </table>
                <form action="<?php echo $ACTION_URL; ?>" method="post" onSubmit="return checksub()"
                      enctype="multipart/form-data">
                    <label style="color: #ff213e;font-size: 25px;text-align: center; "><?php echo $MSG_FAULT; ?></label>
                    <label style="color: #0007ff;font-size: 25px;text-align: center; "><?php echo $MSG_OK; ?></label>

                    <table class="table table-bordered table-striped mb-0" style="width: 100%;" border="1">
                        <tr>
                            <th>标题</th>
                            <th style=" width: 100px;text-align: center;">机号</th>
                            <th style=" width: 150px;text-align: center;">日期</th>
                            <th style=" width: 150px;text-align: center;">操作</th>
                        </tr>
                        <tr>
                            <td><?php echo AllowLineBreak($TITLE); ?></td>
                            <td style="text-align: center;"><?php echo AllowLineBreak($ACNO); ?></td>
                            <td style="text-align: center;"><?php echo F_UnixToString($DATE); ?></td>
                            <td style="text-align: center;"><input type="submit" class="btn btn-success btn-sm ms-3"
                                                                   name="sub" value="删除"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>

<script>

    SetCalendarDate("F_DATE", <?php echo '"' . F_UnixToString($DATE) . '"' ?>);
    F_Operate_Select("STATUE", <?php echo '"' . $STATUE . '"' ?>);
    F_Operate_Select("ACTYPE", <?php echo '"' . $ACTYPE . '"' ?>);

    //检查是否为空
    function checksub() {
        var confirmation = confirm("确定要删除吗？");
        if (confirmation) {
            // 执行删除操作
            return true;
        } else {
            // 取消删除操作
            return false;
        }
    }
</script>

